{% extends "pretixcontrol/items/base.html" %}
{% load i18n %}
{% load bootstrap3 %}
{% block title %}{% trans "Delete description" %}{% endblock %}
{% block inside %}
	<h1>{% trans "Delete description" %}</h1>
	<form action="" method="post" class="form-horizontal">
		{% csrf_token %}
		<p>{% blocktrans %}Are you sure you want to delete the description <strong>{{ question }}</strong>?{% endblocktrans %}</p>
		{% if dependent|length > 0 %}
			<p>{% blocktrans %}All answers to the description given by the buyers of the following products will be <strong>lost</strong>.{% endblocktrans %}</p>
			{% for item in dependent %}
				<li><a href="{% url "control:event.item" organizer=request.event.organizer.slug event=request.event.slug item=item.pk %}">{{ item.name }}</a></li>
			{% endfor %}
		{% endif %}
		<div class="form-group submit-group">
            <a href="{% url "control:event.products.questions" organizer=request.event.organizer.slug event=request.event.slug %}" class="btn btn-default btn-cancel">
                {% trans "Cancel" %}
            </a>
            <button type="submit" class="btn btn-delete btn-danger btn-save">
                {% trans "Delete" %}
            </button>
		</div>
	</form>
{% endblock %}
